<%Const respagecode="console_profile"%><% 'UTF-8%>
<%''加载通用函数和数据库连接%>
<!--#include file="../Include/Start.asp"-->
<%'检查是否登录%>
<!--#include file="../Include/checklogin.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!--meta信息-->
	<!--#include file="../Include/meta.asp"-->
	
	
	<link href="../css/css-1.05.css" rel="stylesheet" type="text/css" />
	<link href="../css/console-1.03.css" rel="stylesheet" type="text/css" />
	<link href="../css/calendar.css" rel="stylesheet" type="text/css" />
	<link href="../css/console_home-1.06.css" rel="stylesheet" type="text/css" />
	
	<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>
	<script type="text/javascript" src="../js/jquery.extend-1.06.js"></script>
	<script type="text/javascript" src="../js/common_1.01.js"></script>
	<script type="text/javascript" src="../js/console_profile.js"></script>
	<script type="text/javascript" src="../js/menu.js"></script>
 
</head>

<body>
<div class="wrapper">

	<!--header页头信息-->
	<!--#include file="../Include/header.asp"-->
	<!--end header页头信息-->


	<!--navigation菜单信息-->
	<!--#include file="../Include/navigation.asp"-->
	<script type="text/javascript">
		$("#navigation").menu('point');
		/*选中该tab页 需要tab页上有ID*/
		$("#console").attr("className","on")
	</script>
	<!--end navigation菜单信息-->
 	<%
	 	''定义查询字段变量
 	dim id,UserID,UserPassword,	UserName,TrueName,	HomePhone,Mobile,Email,RegTime,UserType,Address,IDCard,Sex 
 
''用户信息
		 
 
		 
			''Dim rsObj,strSql
			set rsObj=Server.CreateObject("ADODB.Recordset")
			strSql = "Select  * from PE_User where UserID='"&Session("UserID")&"' "
			''Response.Write strSql&"-----"
			rsObj.Open strSql, Conn, 1, 3
			If rsObj.BOF And rsObj.EOF Then 
				 response.redirect "/console" ''如果id并没有传来跳转回原处
			end if	 
			UserID=Trim(rsObj("UserID"))
			UserName=Trim(rsObj("UserName"))
			TrueName=Trim(rsObj("TrueName"))
			Address=Trim(rsObj("Address"))
			IDCard=Trim(rsObj("IDCard"))
			Sex=Trim(rsObj("Sex"))
			HomePhone=Trim(rsObj("HomePhone"))
			Mobile=Trim(rsObj("Mobile"))
			Email=Trim(rsObj("Email"))
			RegTime=Trim(rsObj("RegTime"))
			UserType=Trim(rsObj("UserType"))
 

			rsObj.close
			''Set rsObj = Nothing 

 '释放数据库链接
	''call CloseConn	
	%>	

<!--begin container-->
<div class="container" id="container">
 
	<div class="c_left">
		<!--begin left_menu 左侧菜单信息-->
		<!--#include file="../Include/left_menu.asp"-->
		<!--end left_menu 左侧菜单信息-->	
	</div>
	<div class="c_right">
		<DIV class=c_r_head>
			<DIV class=head_title><H4>账户资料</H4></DIV>
		</DIV> 
 
		<DIV class=c_r_body >
		<form action="profile_do.asp" method="post" id="form_edit">
			<INPUT type="hidden" value="edit" name="act" id="act"> 
			<INPUT type="hidden" value="personal" name="type" id="type">
			<INPUT type="hidden" value="<%=UserID%>" name="UserID" id="UserID">
			<INPUT type="hidden" value="<%=UserName%>" name="UserName" id="UserName"> 
			<INPUT type="hidden" value="<%=UserType%>" name="UserType" id="UserType">			
		<TABLE style="LINE-HEIGHT: 20px" cellSpacing=1 cellPadding=0 width="100%" border=0>
			<TBODY>
				<TR>
					<TD align=right width="35%" height=24>用户名：</TD>
					<TD><span class="b"><%=UserName%></span></TD>
				</TR>
				<TR>
					<TD align=right height=24>用户类型：</TD>
					<TD><SPAN class=b> <% 
						if ("1"=UserType) then 
							Response.Write "受理机构用户" 
						elseif ("2"=UserType) then 
							Response.Write "企业用户" 
						elseif ("0"=UserType) then 
							Response.Write "管理员" 
						end if%></SPAN></TD>
				</TR>
				<TR>
					<TD align=right height=24>真实姓名：</TD>
					<TD><INPUT class=text id='TrueName' name='TrueName' style="WIDTH: 80px" value="<%=TrueName%>" /></TD>
				</TR>
				<TR>
					<TD align=right height=24>性别：</TD>
					<TD> 
						<SELECT id=Sex style="WIDTH: 88px" name=Sex>
						<OPTION value=""></OPTION>
						<OPTION label=男 value=1 <% if ("1"=Sex) then Response.Write "selected"%>>男</OPTION>
						<OPTION label=女 value=0 <% if ("0"=Sex) then Response.Write "selected"%>>女</OPTION>
					</SELECT></TD>
				</TR>

				<TR>
					<TD align=right height=24>身份证号码：</TD>
					<TD><INPUT class=text id=IDCard name=IDCard style="WIDTH: 80px" value="<%=IDCard%>" /></TD>
				</TR>
				<TR>
					<TD align=right height=24>联系地址：</TD>
					<TD><INPUT class=text id=Address name=Address style="WIDTH: 80px" value="<%=Address%>" /></TD>
				</TR>

				<TR>
					<TD align=right height=24>
					<P>联系电话：</P>
					</TD>
					<TD><INPUT class=text id=HomePhone name=HomePhone style="WIDTH: 80px" value="<%=HomePhone%>" /></TD>
				</TR>
				<TR>
					<TD align=right height=24>手机号码：</TD>
					<TD><INPUT class=text id=Mobile name=Mobile style="WIDTH: 80px" value="<%=Mobile%>" /></TD>
				</TR>
				<TR>
					<TD align=right height=24>电子邮件：</TD>
					<TD><INPUT class=text id=Email name=Email style="WIDTH: 80px" value="<%=Email%>" /></TD>
				</TR>

				<TR>
					<TD>&nbsp;</TD>
					<TD height=40>
						<INPUT type=submit value=确认修改>&nbsp;&nbsp; 
						<LABEL id=result></LABEL></TD>
				</TR>
			</TBODY>
		</TABLE>
		</FORM>
		<SCRIPT type=text/javascript>//initProfilePassport();</SCRIPT></DIV>
		 
	</div>

	<script type="text/javascript">
		initPage();	
	</script>
	
 
 
</div>



	
	
</div>
<!--footer页脚信息-->
<!--#include file="../Include/footer.asp"-->
<!--end footer页脚信息-->
</div>
</body>
</html>
